package com.bos.utils;

import lombok.Data;
import lombok.ToString;
import org.hibernate.criterion.DetachedCriteria;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author Administrator
 * @description 封装分页查询所需要的的信息
 */
@Data
@ToString
@Component
@Scope(value = "prototype")
public class PageBean {
    //当前页码
    private int currentPage;
    //页面大小
    private int pageSize;
    //分页查询条件
    private DetachedCriteria detachedCriteria;
    //记录的总条数
    private int total;
    //需要展示的数据集合
    private List rows;

}
